package com.lft.com.oilgas.service;

import com.lft.com.oilgas.entity.Commodity;
import com.lft.com.oilgas.util.QueryBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tyqw
 * @since 2024-09-10
 */

public interface ICommodityService  {
    int insterOrupdateCommodity(Commodity commodity);
    //分页查询
    List<Commodity> getCommodities(QueryBean queryBean);
    //根据商店id查找相关商品
    List<Commodity> bymerchantid(Integer id);
    //根据商品id查询详情
    Commodity selectByid(Integer id);
    //修改或者新增
    void  insertOrUpdate(Commodity commodity);
    //根据id删除
    void delectById(Integer id);
}
